<script>
	import {setEnableDebug} from '@/common/util/uniPromise.js';
	export default {
		onLaunch: function() {
			console.log('App Launch')
			// this.setDebugWindow()
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
			async setDebugWindow(){
				const systemInfo=await uni.getSystemInfo()
				const envVersion= __wxConfig.envVersion;
				const versionsList=['trial','develop']
				if(versionsList.includes(envVersion)&&systemInfo[1].platform!='devtools'){
					await setEnableDebug()
				}
				
			}
		}
			
	
	}
</script>

<style>
	/*每个页面公共css */
	@import '@/common/css/app.css';
	
</style>
